$(function(){
	var d={};
	d.type='2';
	d.token=token;
	$.ajax({
	    type:"post",
	    url:url+'/user/personinfo.html?token='+token,
	    async:false,
	    data:d,
	    dataType:'json',
	    success:function(result){
			console.log(result)
	        if(result.status === "0001"){
	        	var data=result.data;
	        	$(".username").html(data.username);
	        	$(".created_at").html(data.created_at);
	        	$(".inviter").html(data.inviter);
	        	$(".btb_url").html(data.btb_url);
	        	if(data.blb_state == "0"){
	        		$(".blb_state").attr("href","my_information_wallet.html");
	        	}else{
	        		$(".blb_state").find("span").html('已绑定');
	        	}
	        	
//	        	银行卡
				if(data.bank_number != ""){
					$(".bank_div").css("display","block");
					$(".bank_number").html(data.bank_number);
	        		$(".bank_name").html(data.bank_name);
				}
	        }else{
	            isErr(result);
	        }
	    },
		error:function(){
			layer.msg("响应失败");
		}
	})
})
